//
//  ChannelCollectionViewCell.m
//  UI_礼物说
//
//  Created by mac on 16/3/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ChannelCollectionViewCell.h"

@implementation ChannelCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.channelTitle = [[UILabel alloc]init];
        self.channelTitle.textAlignment = 1;
        self.channelTitle.font = [UIFont systemFontOfSize:13];
        self.channelTitle.layer.borderWidth = 0.8;
        self.channelTitle.layer.borderColor = [UIColor greenColor].CGColor;
        self.channelTitle.textColor = [UIColor grayColor];
        self.channelTitle.layer.cornerRadius = 5;
        self.channelTitle.clipsToBounds = YES;
        [self.contentView addSubview:_channelTitle];
    }
    return self;
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.channelTitle.frame = CGRectMake(5, 2, layoutAttributes.frame.size.width - 5, 35);
}
@end
